package com.meteor.service.impl;

import com.meteor.mapper.TypeMapper;
import com.meteor.pojo.Type;
import com.meteor.service.TypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {

    @Resource
    private TypeMapper typeMapper;

    @Override
    public List<Type> selectAllType() {
        return typeMapper.selectAllType();
    }

    @Override
    public Type selectTypeByName(String typeName) {
        return typeMapper.selectTypeByName(typeName);
    }
}
